﻿using Microsoft.Extensions.DependencyInjection;
<<<<<<< HEAD
=======
using RxxApi.Common.Seed;
>>>>>>> 978f3e50234340b2479b3d4d960a10aa408b09d0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RxxApi.Extensions.ServiceExtensions;
<<<<<<< HEAD

=======
>>>>>>> 978f3e50234340b2479b3d4d960a10aa408b09d0
/// <summary>
/// Db 启动服务
/// </summary>
public static class DbSetup
{
<<<<<<< HEAD
    public static void AddDbSetup(this IServiceCollection services) {
        if (services == null) throw new ArgumentException(nameof(services));

        services.AddScoped<DBSeed>();
=======
    public static void AddDbSetup(this IServiceCollection services)
    {
        if (services == null) throw new ArgumentNullException(nameof(services));

        services.AddScoped<DBSeed>();
        services.AddScoped<MyContext>();
>>>>>>> 978f3e50234340b2479b3d4d960a10aa408b09d0
    }
}
